using UnityEngine;
using System.Collections;

public class TextureOffsetMotion : MonoBehaviour {
    public float scrollSpeed = 0.1F;
	// Use this for initialization
	void Start() {
//       YieldInstruction delay = new WaitForEndOfFrame();
//        while (true)
//        {
//            float offset = Time.time * scrollSpeed;
//            renderer.material.SetTextureOffset("_MainTex", new Vector2(offset, 0));
//            yield return delay;
//        }
	}

  

    
    //void Update()
    //{
    //    float offset = Time.time * scrollSpeed;
    //    renderer.material.SetTextureOffset("_MainTex", new Vector2(offset, 0));
    //}
}
